import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { getStoreUser } from '@/utils/store'
// import * as echarts from 'echarts'

// 全局过滤器
import './filter'

// 全局指令
import './directive'

// 全局css样式
import './style/global.css'

// elementui插件引入
import './plugins/element.js'
import './plugins/echarts.js'

// 全局组件
import './components/dialog'
import './components/pagenav'

Vue.config.productionTip = false

// Vue.prototype.$echarts = echarts

// vuex持久保持
if (getStoreUser('user') != '') {
  store.commit('user/setUser', getStoreUser('user'))
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
